package com.itheima.day13work;
//卖票案例
public class Demo1 {
    public static void main(String[] args) {
        Ticket t=new Ticket();

        Thread th=new Thread(t);
        Thread th1=new Thread(t);
        Thread th2=new Thread(t);
        th.setName("窗口1");
        th1.setName("窗口2");
        th2.setName("窗口3");
        th.start();
        th1.start();
        th2.start();
    }

}
